package colicious.domain;

import java.io.Serializable;

public class Order implements Serializable {
	
	private int id;
	private String type;        // IOC, DAY, etc.
	private String status;      // ACK, CXL, etc.
	private String cxlCode;     // LOWBID, UNRBID, etc.
	private Double price;
	
	// Getters
	public int getId() {
		return id;
	}
		
	public String getType() {
		return type;
	}	

	public String getStatus() {
		return status;
	}		

	public String getCxlCode() {
		return cxlCode;
	}		
	
	public Double getPrice() {
		return price;
	}

	// Setters
	public void setId(int i) {
		this.id = i;
	}
	
	public void setType(String i) {
		this.type = i;
	}	

	public void setStatus(String i) {
		this.status = i;
	}		

	public void setCxlCode(String i) {
		cxlCode = i;
	}		
	
	public void setPrice(Double price) {
		this.price = price;
	}

	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("Type: "    + type    + ";");
		buffer.append("Status: "  + status  + ";");
		buffer.append("CxlCode: " + cxlCode + ";");
		buffer.append("Price: "   + price);
		return buffer.toString();
	}
}